import request from '@/utils/request'

export const getCaptcha = (data) => {
  return request({
    url: '/sys/captcha',
    method: 'post',
    data
  })
}
export const postLogin = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
export const getProfile = () => {
  return request({
    url: '/user/profile',
    method: 'get'
  })
}
export const putProfile = (data) => {
  return request({
    url: '/user/profile',
    method: 'put',
    data
  })
}
export const getSts = () => {
  return request({
    url: '/user/sts',
    method: 'get'
  })
}
export const postRegister = (data) => {
  return request({
    url: '/sys/register',
    method: 'post',
    data
  })
}
export const getWXLoginData = (data) => {
  return request({
    url: '/sys/wxlogin/data',
    method: 'get',
    data
  })
}
